import request from '@/http/request'
// 用户列表
export const $getFasnList = (data) => {
  return request.request({
    url: '/api/fans/list',
    method: 'post',
    data
  })
}
// 用户详情
export const $getFasnDetail = (data) => {
  return request.request({
    url: '/api/fans/detail',
    method: 'post',
    data
  })
}

// 绑定机构员工
export const $bindAgentEmployee = (data) => {
  return request.request({
    url: '/api/fans/custManagerBind',
    method: 'post',
    data
  })
}

// 解绑机构员工
export const $unbindAgentEmployee = (data) => {
  return request.request({
    url: '/api/fans/custManagerUnBind',
    method: 'post',
    data
  })
}

// 用户注销或者回复
export const $fansCancelOrReply = (data) => {
  return request.request({
    url: '/api/fans/delFanUser',
    method: 'post',
    data
  })
}

// 查看福分记录变更
export const $getFansScoreRecord = (data) => {
  return request.request({
    url: '/api/fans/recordOfBlessings',
    method: 'post',
    data
  })
}


// 导出
export const $exportFansList = (data) => {
  return request.request({
    url: '/api/exportExcel/listExportWechat',
    method: 'post',
    data,
  })
}

// 导出福分记录
export const $exportFansScoreRecord = (data) => {
  return request.request({
    url: '/api/exportExcel/recordExportWechat',
    method: 'post',
    data,
  })
}